<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Cache-Control" content="no-cache"/>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<title>一图流</title>
<link href="<?php echo LAYUI_PATH;?>css/layui.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html{overflow-x: hidden;}
div{margin: 0 auto;}
.layui-scroll{padding: 10px;}
.layui-piclist{width: 980px;margin-bottom: 10px;overflow:hidden;text-align: center;}
.layui-piclist img{display: inline-blcok;max-width: 980px;}
</style>
<script type="text/javascript" src="<?php echo LAYUI_PATH;?>layui.js"></script>
</head>
<body>
<div class="layui-scroll">
<?php $n=1; if(is_array($pictureurls)) foreach($pictureurls AS $i => $r) { ?>
  <div class="layui-piclist"><img <?php if($i <1) { ?>src<?php } else { ?>lay-src<?php } ?>="<?php echo $r['url'];?>" alt="<?php echo $r['alt'];?>" /></div>
<?php $n++;}unset($n); ?>
</div>
<script>
layui.use('flow', function(){
  var flow = layui.flow;
  flow.lazyimg(); 
});
</script>
</body>
</html>